package com.example.testadmin;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;


/**
 * 使用springBootAdmin步骤
 *
 * 1.新建1个空的 springboot jar项目
 * 2.添加依赖
 *         <dependency>
 *             <groupId>de.codecentric</groupId>
 *             <artifactId>spring-boot-admin-server</artifactId>
 *             <version>2.1.0</version>
 *         </dependency>
 *         <dependency>
 *             <groupId>de.codecentric</groupId>
 *             <artifactId>spring-boot-admin-server-ui</artifactId>
 *             <version>2.1.0</version>
 *         </dependency>
 * 3.在启动类上添加注解 @EnableAdminServer
 *
 *
 */
@SpringBootApplication
@EnableAdminServer
public class TestadminApplication {

    public static void main(String[] args) {
        SpringApplication.run(TestadminApplication.class, args);
    }

}
